home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / CDTV / cdtvtools-11 / includes / keyclick.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-06-24  |  1.4 KB  |  41 lines

  1. /*  :ts=8 bk=0
  2.  *
  3.  * keyclick.h:    Public definitions for the key click module.
  4.  *
  5.  * Leo L. Schwab
  6.  ***************************************************************************
  7.  *    This information is CONFIDENTIAL and PROPRIETARY           *
  8.  *    Copyright 1991, Silent Software Incorporated.               *
  9.  *    All Rights Reserved.                           *
  10.  ***************************************************************************
  11.  */
  12. /*
  13.  * The message port to which key click commands are sent.
  14.  */
  15. #define    CLICKPORTNAME    "CDTV Key Clicker"
  16.  
  17. /*
  18.  * These are the commands you can feed to the key click task.  These are
  19.  * placed in the io_Command field of an IOStdReq.
  20.  *
  21.  * Details of command operation are found in the autodoc
  22.  * playerprefs.library/KeyClickCommand.  The parameters map to the IOStdReq
  23.  * fields as follows:
  24.  *
  25.  * cmd        io_Command
  26.  * sample    io_Data
  27.  * length    io_Length
  28.  * rate        io_Actual
  29.  * ncycles    io_Offset
  30.  * volume    io_Flags    ; Yeah, I know...
  31.  */
  32. #define    CLKCMD_DIE        0    /*  Terminate key click task.    */
  33. #define    CLKCMD_DISABLE        1    /*  Disable/enable all clicking.*/
  34. #define    CLKCMD_SETREPEAT    2    /*  Turn repeat clicks on/off.    */
  35. #define    CLKCMD_SETJOYBEEP    3    /*  Enable/disable joybeep.    */
  36. #define    CLKCMD_SETVOLUME    4    /*  Set volume of current sound.*/
  37. #define    CLKCMD_SETRATE        5    /*  Set sampling rate of sound.    */
  38. #define    CLKCMD_CLICK        6    /*  Produce a click now.    */
  39. #define    CLKCMD_NEWSOUND        7    /*  Replace click sound sample.    */
  40. #define    CLKCMD_ISDEFAULT    8    /*  Is current sound default?    */
  41.